<?php

namespace App\Helpers;

class AesUtil
{
    static function encrypt($data)
    {
        return openssl_encrypt($data, 'AES-128-ECB', env("AES_KEY"));
    }

    static function decrypt($data)
    {
        return openssl_decrypt($data, 'AES-128-ECB', env("AES_KEY")) ?? "";
    }
}